// compile: g++ -o is_lock_free is_lock_free.cc -std=c++11
// run: ./is_lock_free
#include <atomic>
#include <iostream>
#include <string>
using namespace std;

class A {
  int a;
  // long long b;
  double c;
};
void Test1() {
  atomic<A> a;
  cout << std::boolalpha << a.is_lock_free() << endl;
  atomic<int> b;
  cout << std::boolalpha << b.is_lock_free() << endl;
  //   atomic<string> c;
  //   cout << std::boolalpha << c.is_lock_free() << endl;
}
int main() {
  Test1();
  return 0;
}
